package com.gxa.modules.mapper.operationsmapper;

import com.gxa.modules.pojo.Comment;
import com.gxa.modules.pojo.Content;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ContentMapper {

    List<Content> selectContent(@Param("index") int index,
                                @Param("size") int size,
                                @Param("title") String title,
                                @Param("contentType") String contentType);
    List<Comment> selectComment(@Param("index") int index,
                                @Param("size") int size,
                                @Param("title") String title,
                                @Param("contentType") String contentType);
    int insertContent(Content content);
    Content selectContentById(int id);
    int updateContentById(Content content);
    int deleteContentById(int id);
    int deleteContentByPatch(List<Integer> ids);
    int selectCountContent(@Param("title") String title,
                           @Param("contentType") String contentType);

}
